#include<iostream>
#include<set>
using namespace std;
int main()
{
	int temp[] = { 1,2,2,3,3,4,56,7,1,2,3 };
	int sz = sizeof(temp) / sizeof(temp[0]);
	set<int>arr;
	for (int i = 0; i < sz; i++)
	{
		arr.insert(temp[i]);
	}
	set<int>::iterator it;
	for (it = arr.begin(); it != arr.end(); it++)
	{
		cout << *it << " ";
	}
	return 0;
}